<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

@include("admin.public.head");

<title>MWS Admin - Typography</title>

</head>

<body>

	@include("admin.public.top");

    <div id="mws-wrapper">
    @include("admin.public.left")
        
        <div id="mws-container" class="clearfix">
            <div class="container">
                <div>
                        @if ($errors->any())
                         <div class="alert alert-danger">
                         <ul>
                         @foreach ($errors->all() as $error)
                         <li>{{ $error }}</li>
                         @endforeach
                         </ul>
                         </div>
                        @endif
                </div>
            	<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span class="mws-i-24 i-create">添加文章</span>
                    </div>
                    <div class="mws-panel-body">
                    	<div class="mws-panel-content">
                    		<form action="{{url('admin/la')}}" method="post">
                                <input type="hidden" name="_token" value="{{csrf_token()}}">
                                <p>标题</p>
                                <p><input type="text" name="title" value="{{$ls->title}}" /></p>
                                <p>所属分类</p>
                                <div>
                                    <select name="pid" id="" style="width:150px;">
                                      <option value="{{$st['cid']}}">{{$st['name']}}</option>   
                                    <!-- 输出分类 -->
                                    @foreach ($data as $v)
                                     <option value="{{$v->cid}}">{{$v->name}}</option>
                                        @if (count($v->n) > 0)
                                             @foreach ($v->n as $k)
                                         <option value="{{$k->cid}}">&nbsp|-{{$k->name}}</option>
                                                    @if (count($k->n) > 0)
                                                         @foreach ($k->n as $kv)
                                                     <option value="{{$kv->cid}}">&nbsp&nbsp||--{{$kv->name}}</option>
                                                         @endforeach
                                                    @endif
                                             @endforeach
                                        @endif
                                    @endforeach
                                        
                                    </select>
                                </div>
                                <p>关键字</p>
                                <p><input type="text" name="keywords" value="{{$ls->keywords}}"  /></p>
                                <p>描述不用超过100字</p>
                                <div>
                   <textarea  name="description"  id="" cols="30" rows="10">{{$ls->description}}</textarea>
                                </div>
                                <p>上传图片</p>
                                <div>

                                </div>
                                <p>内容</p>
                                <p></p>
                                <div>
                                    <script style="width:100%;height:500px;" id="container" name="content" type="text/plain"><?php echo $ls->content;  ?></script>
                                </div>
                                <p><input name="" type="submit" value="提交" /> </p>
                            </form>
                                <!-- 配置文件 -->
                                <script type="text/javascript" src="{{ asset('resources/views/admin/public/baidu-php')}}/ueditor.config.js"></script>
                                <!-- 编辑器源码文件 -->
                                <script type="text/javascript" src="{{ asset('resources/views/admin/public/baidu-php')}}/ueditor.all.js"></script>
                                <!-- 实例化编辑器 -->
                                <script type="text/javascript">
                                    var editor = UE.getEditor('container');
                                </script>

                                <!--style给定宽度可以影响编辑器的最终宽度-->
                    	</div>
                    </div>
				</div>
                
                
			<!-- 	<div class="mws-panel grid_4">
                	<div class="mws-panel-header">
                    	<span class="mws-i-24 i-documents-1">Code Block</span>
                    </div>
                    <div class="mws-panel-body">
                    	<div class="mws-panel-content"> -->
<!-- <h3>Panel HTML Structure</h3>
<pre class="mws-code-html">
<div class="mws-panel grid_4">
	<!-- Panel Header 
    <div class="mws-panel-header">
        <span class="mws-i-24 i-documents-1">
        
        	Code Block
        </span>
    </div>
    <div class="mws-panel-body">
    </div>
</div>
</pre>
                        </div>
                    </div>
				</div>    
            </div>
            
        
            
        </div>
    </div> -->


</body>
</html>
